from tkinter import Tk, Canvas, BOTH

c = int(input())
b = int(input())
a = int(input())

root = Tk()
root.geometry("500x500+300+300")

canvas = Canvas()
if c * b > 500 or 10 * a > 500 or 0 + c < 0 or 0 + c > 470 or 0 + b > 470 or 0 + b < 0 or 30 * a > 500:
    print("Размер фигуры превышает максимальный размер")
else:
    def rect(x1, y1, width, heigth):

        canvas.create_rectangle(
            x1, y1, x1 + width, y1 + heigth,
            outline="#05f", fill="#05f"
        )


    rect(0 + c, 0 + b, 10 * a, 10 * a)
    rect(0 + c, 10 * a + b, 30 * a, 10 * a)
    rect(20 * a + c, 0 + b, 10 * a, 10 * a)
    canvas.pack(fill=BOTH, expand=1)

    root.mainloop()
